package com.demoo.zjsu;


import org.apache.log4j.Logger;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by jshjsh on 2016/8/18.
 */
@Component
public class TestQuertz {

    Logger logger = Logger.getLogger(getClass());
    /**
     * 表达/每多长时间执行
     */
//    @Scheduled(cron="0/20 * * * * ? ")
    public void sout() {
       logger.warn("执行一次");
    }

}
